package cn.tedu.pojo;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
@RestController
@RequestMapping("car2")
public class CarController2 {

    //    @RequestMapping("get")
//    public String get(Integer id ,String name ,String color , String age ,Double price) {
////        String usr = "http://localhost:8080/car2/fin?id=911&name=保时捷&color=红色&age=SUV&price=1000000.00";
//
////        System.out.println(id + name + color + age + sex);
//        return "{"+"型号:"+id +"品牌:"+ name +"颜色:"+ color +"车型:"+ age +"价格:"+ price+"}";
//
//    }
    @RequestMapping("get2/{x}/{y}/{z}/{v}/{b}")
    public void get2(@PathVariable Integer x,
                     @PathVariable String y,
                     @PathVariable String z,
                     @PathVariable String v,
                     @PathVariable Double b){
        System.out.println(x);
        System.out.println(y);
        System.out.println(z);
        System.out.println(v);
        System.out.println(b);

    }
}